package org.jeecg.modules.fep.service;

import org.jeecg.modules.fep.entity.FepInstallments;
import org.jeecg.modules.fep.entity.FepOrdersProduct;
import org.jeecg.modules.fep.entity.FepOrders;
import com.baomidou.mybatisplus.extension.service.IService;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 订单模块
 * @Author: jeecg-boot
 * @Date:   2023-04-14
 * @Version: V1.0
 */
public interface IFepOrdersService extends IService<FepOrders> {

	/**
	 * 添加一对多
	 *
	 * @param fepOrders
	 * @param fepInstallmentsList
	 * @param fepOrdersProductList
	 */
	public void saveMain(FepOrders fepOrders,List<FepInstallments> fepInstallmentsList,List<FepOrdersProduct> fepOrdersProductList) ;
	
	/**
	 * 修改一对多
	 *
	 * @param fepOrders
	 * @param fepInstallmentsList
	 * @param fepOrdersProductList
	 */
	public void updateMain(FepOrders fepOrders,List<FepInstallments> fepInstallmentsList,List<FepOrdersProduct> fepOrdersProductList);
	
	/**
	 * 删除一对多
	 *
	 * @param id
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 *
	 * @param idList
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);

	/**
	 * 查询销量top10水果产品
	 * @param dates (2023)
	 * @return
	 */
	public List<FepOrders> selectTopProductsSales(String dates);


	/**
	 * 未支付总额top10
	 * @return
	 */
	public List<FepOrders> selectTopUpaidTotal();
}
